package com.lzy.cloud.ticket.train.servcie;

import com.github.pagehelper.PageInfo;
import com.lzy.cloud.ticket.train.dtos.TrainOrderDto;
import com.lzy.framework.core.orm.db.Pager;

import java.util.List;

/**
 * Created by WIN7 on 2018/6/1.
 */
public interface TrainOrderService {


    /**
     * 查询火车票订单
     * @return
     */
    PageInfo<TrainOrderDto> queryTrainOrderList(Pager pager, TrainOrderDto trainOrderDto);


    /**
     *根据条件查询火车票订单
     * @return
     */
    TrainOrderDto queryTrainOrderByCondition(String customId);


    /**
     * 创建火车票订单
     * @return
     */
    Long createTrainOrder(TrainOrderDto trainOrderDto);


    /**
     * 更新火车票订单
     * @return
     */
    boolean  updateTrainOrder(TrainOrderDto trainOrderDto);
}
